<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>ZBBatchWorkerConfig | zeebe-node</title>
	<meta name="description" content="Documentation for zeebe-node">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
	<script async src="../assets/js/search.js" id="search-script"></script>
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">zeebe-node</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../modules.html">zeebe-node</a>
				</li>
				<li>
					<a href="ZBBatchWorkerConfig.html">ZBBatchWorkerConfig</a>
				</li>
			</ul>
			<h1>Interface ZBBatchWorkerConfig&lt;WorkerInputVariables, CustomHeaderShape, WorkerOutputVariables&gt;</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-type-parameters">
				<h3>Type parameters</h3>
				<ul class="tsd-type-parameters">
					<li>
						<h4>WorkerInputVariables</h4>
					</li>
					<li>
						<h4>CustomHeaderShape</h4>
					</li>
					<li>
						<h4>WorkerOutputVariables</h4>
					</li>
				</ul>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<a href="ZBWorkerBaseConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBWorkerBaseConfig</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">&gt;</span>
						<ul class="tsd-hierarchy">
							<li>
								<span class="target">ZBBatchWorkerConfig</span>
							</li>
						</ul>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#connectionTolerance" class="tsd-kind-icon">connection<wbr>Tolerance</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#debug" class="tsd-kind-icon">debug</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#failProcessOnException" class="tsd-kind-icon">fail<wbr>Process<wbr>OnException</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#fetchVariable" class="tsd-kind-icon">fetch<wbr>Variable</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#id" class="tsd-kind-icon">id</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ZBBatchWorkerConfig.html#jobBatchMaxTime" class="tsd-kind-icon">job<wbr>Batch<wbr>Max<wbr>Time</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite"><a href="ZBBatchWorkerConfig.html#jobBatchMinSize" class="tsd-kind-icon">job<wbr>Batch<wbr>Min<wbr>Size</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#logNamespace" class="tsd-kind-icon">log<wbr>Namespace</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#loglevel" class="tsd-kind-icon">loglevel</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#longPoll" class="tsd-kind-icon">long<wbr>Poll</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#maxJobsToActivate" class="tsd-kind-icon">max<wbr>Jobs<wbr>ToActivate</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#onConnectionErrorHandler" class="tsd-kind-icon">on<wbr>Connection<wbr>Error<wbr>Handler</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#pollInterval" class="tsd-kind-icon">poll<wbr>Interval</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#stdout" class="tsd-kind-icon">stdout</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface"><a href="ZBBatchWorkerConfig.html#taskHandler" class="tsd-kind-icon">task<wbr>Handler</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#taskType" class="tsd-kind-icon">task<wbr>Type</a></li>
								<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#timeout" class="tsd-kind-icon">timeout</a></li>
							</ul>
						</section>
						<section class="tsd-index-section tsd-is-inherited">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#onConnectionError" class="tsd-kind-icon">on<wbr>Connection<wbr>Error</a></li>
								<li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="ZBBatchWorkerConfig.html#onReady" class="tsd-kind-icon">on<wbr>Ready</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="connectionTolerance" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> connection<wbr>Tolerance</h3>
					<div class="tsd-signature tsd-kind-icon">connection<wbr>Tolerance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MaybeTimeDuration</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#connectionTolerance">connectionTolerance</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L360">src/lib/interfaces-1.0.ts:360</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>If your Grpc connection jitters, this is the window before the connectionError</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="debug" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> debug</h3>
					<div class="tsd-signature tsd-kind-icon">debug<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#debug">debug</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L299">src/lib/interfaces-1.0.ts:299</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Enable debug tracking</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="failProcessOnException" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> fail<wbr>Process<wbr>OnException</h3>
					<div class="tsd-signature tsd-kind-icon">fail<wbr>Process<wbr>OnException<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#failProcessOnException">failProcessOnException</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L295">src/lib/interfaces-1.0.ts:295</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>If a handler throws an unhandled exception, if this is set true, the process will be failed. Defaults to false.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="fetchVariable" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> fetch<wbr>Variable</h3>
					<div class="tsd-signature tsd-kind-icon">fetch<wbr>Variable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">[]</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#fetchVariable">fetchVariable</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L287">src/lib/interfaces-1.0.ts:287</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Constrain payload to these keys only.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="id" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> id</h3>
					<div class="tsd-signature tsd-kind-icon">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#id">id</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L350">src/lib/interfaces-1.0.ts:350</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>A custom id for the worker. If none is supplied, a UUID will be generated.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
					<a name="jobBatchMaxTime" class="tsd-anchor"></a>
					<h3>job<wbr>Batch<wbr>Max<wbr>Time</h3>
					<div class="tsd-signature tsd-kind-icon">job<wbr>Batch<wbr>Max<wbr>Time<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L344">src/lib/interfaces-1.0.ts:344</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>The max timeout in seconds to wait for a batch to populate. If there are less than <code>minJobBatchSize</code> jobs
								available when this timeout is reached, all currently batched jobs will be processed, regardless.
							You should set this higher than the worker timeout, to avoid batched jobs timing out before they are executed.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite">
					<a name="jobBatchMinSize" class="tsd-anchor"></a>
					<h3>job<wbr>Batch<wbr>Min<wbr>Size</h3>
					<div class="tsd-signature tsd-kind-icon">job<wbr>Batch<wbr>Min<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<p>Overrides <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#jobBatchMinSize">jobBatchMinSize</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L338">src/lib/interfaces-1.0.ts:338</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>The minimum amount of jobs to batch before calling the job handler.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="logNamespace" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> log<wbr>Namespace</h3>
					<div class="tsd-signature tsd-kind-icon">log<wbr>Namespace<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#logNamespace">logNamespace</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L352">src/lib/interfaces-1.0.ts:352</a></li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="loglevel" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> loglevel</h3>
					<div class="tsd-signature tsd-kind-icon">loglevel<span class="tsd-signature-symbol">:</span> <a href="../modules.html#Loglevel" class="tsd-signature-type" data-tsd-kind="Type alias">Loglevel</a></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#loglevel">loglevel</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L364">src/lib/interfaces-1.0.ts:364</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>A log level if you want it to differ from the ZBClient</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="longPoll" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> long<wbr>Poll</h3>
					<div class="tsd-signature tsd-kind-icon">long<wbr>Poll<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MaybeTimeDuration</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#longPoll">longPoll</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L356">src/lib/interfaces-1.0.ts:356</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>A custom longpoll timeout. By default long polling is every 30 seconds.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="maxJobsToActivate" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> max<wbr>Jobs<wbr>ToActivate</h3>
					<div class="tsd-signature tsd-kind-icon">max<wbr>Jobs<wbr>ToActivate<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#maxJobsToActivate">maxJobsToActivate</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L268">src/lib/interfaces-1.0.ts:268</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Max concurrent tasks for this worker. Default 32.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="onConnectionErrorHandler" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> on<wbr>Connection<wbr>Error<wbr>Handler</h3>
					<div class="tsd-signature tsd-kind-icon">on<wbr>Connection<wbr>Error<wbr>Handler<span class="tsd-signature-symbol">:</span> <a href="../modules.html#ConnectionErrorHandler" class="tsd-signature-type" data-tsd-kind="Type alias">ConnectionErrorHandler</a></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#onConnectionErrorHandler">onConnectionErrorHandler</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L291">src/lib/interfaces-1.0.ts:291</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>This handler is called when the worker cannot connect to the broker, or loses its connection.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="pollInterval" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> poll<wbr>Interval</h3>
					<div class="tsd-signature tsd-kind-icon">poll<wbr>Interval<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MaybeTimeDuration</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#pollInterval">pollInterval</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L283">src/lib/interfaces-1.0.ts:283</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Poll Interval in ms. Default 100.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="stdout" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> stdout</h3>
					<div class="tsd-signature tsd-kind-icon">stdout<span class="tsd-signature-symbol">:</span> <a href="ZBCustomLogger.html" class="tsd-signature-type" data-tsd-kind="Interface">ZBCustomLogger</a></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#stdout">stdout</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L373">src/lib/interfaces-1.0.ts:373</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>An implementation of the ZBCustomLogger interface for logging</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
					<a name="taskHandler" class="tsd-anchor"></a>
					<h3>task<wbr>Handler</h3>
					<div class="tsd-signature tsd-kind-icon">task<wbr>Handler<span class="tsd-signature-symbol">:</span> <a href="../modules.html#ZBBatchWorkerTaskHandler" class="tsd-signature-type" data-tsd-kind="Type alias">ZBBatchWorkerTaskHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WorkerInputVariables</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">CustomHeaderShape</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">WorkerOutputVariables</span><span class="tsd-signature-symbol">&gt;</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L330">src/lib/interfaces-1.0.ts:330</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>A job handler - this must return an array of job actions (eg: job.complete(..), job.error(..)) in all code paths.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="taskType" class="tsd-anchor"></a>
					<h3>task<wbr>Type</h3>
					<div class="tsd-signature tsd-kind-icon">task<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#taskType">taskType</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L377">src/lib/interfaces-1.0.ts:377</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>The task type that this worker will request jobs for.</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
					<a name="timeout" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> timeout</h3>
					<div class="tsd-signature tsd-kind-icon">timeout<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MaybeTimeDuration</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#timeout">timeout</a></p>
						<ul>
							<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L279">src/lib/interfaces-1.0.ts:279</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>Max seconds to allow before time out of a job given to this worker. Default: 30s.
							The broker checks deadline timeouts every 30 seconds, so an</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
					<a name="onConnectionError" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> on<wbr>Connection<wbr>Error</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Connection<wbr>Error<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#onConnectionError">onConnectionError</a></p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L385">src/lib/interfaces-1.0.ts:385</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>This handler is called when the worker cannot connect to the broker, or loses its connection.</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
					<a name="onReady" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagOptional">Optional</span> on<wbr>Ready</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">on<wbr>Ready<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from <a href="ZBWorkerBaseConfig.html">ZBWorkerBaseConfig</a>.<a href="ZBWorkerBaseConfig.html#onReady">onReady</a></p>
								<ul>
									<li>Defined in <a href="https://github.com/camunda-community-hub/zeebe-client-node-js/blob/98cac69/src/lib/interfaces-1.0.ts#L381">src/lib/interfaces-1.0.ts:381</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>This handler is called when the worker (re)establishes its connection to the broker</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class=" ">
						<a href="../modules.html">Exports</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-interface tsd-has-type-parameter">
						<a href="ZBBatchWorkerConfig.html" class="tsd-kind-icon">ZBBatch<wbr>Worker<wbr>Config</a>
						<ul>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#connectionTolerance" class="tsd-kind-icon">connection<wbr>Tolerance</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#debug" class="tsd-kind-icon">debug</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#failProcessOnException" class="tsd-kind-icon">fail<wbr>Process<wbr>OnException</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#fetchVariable" class="tsd-kind-icon">fetch<wbr>Variable</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#id" class="tsd-kind-icon">id</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface">
								<a href="ZBBatchWorkerConfig.html#jobBatchMaxTime" class="tsd-kind-icon">job<wbr>Batch<wbr>Max<wbr>Time</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite">
								<a href="ZBBatchWorkerConfig.html#jobBatchMinSize" class="tsd-kind-icon">job<wbr>Batch<wbr>Min<wbr>Size</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#logNamespace" class="tsd-kind-icon">log<wbr>Namespace</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#loglevel" class="tsd-kind-icon">loglevel</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#longPoll" class="tsd-kind-icon">long<wbr>Poll</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#maxJobsToActivate" class="tsd-kind-icon">max<wbr>Jobs<wbr>ToActivate</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#onConnectionErrorHandler" class="tsd-kind-icon">on<wbr>Connection<wbr>Error<wbr>Handler</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#pollInterval" class="tsd-kind-icon">poll<wbr>Interval</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#stdout" class="tsd-kind-icon">stdout</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface">
								<a href="ZBBatchWorkerConfig.html#taskHandler" class="tsd-kind-icon">task<wbr>Handler</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#taskType" class="tsd-kind-icon">task<wbr>Type</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#timeout" class="tsd-kind-icon">timeout</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#onConnectionError" class="tsd-kind-icon">on<wbr>Connection<wbr>Error</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-interface tsd-is-inherited">
								<a href="ZBBatchWorkerConfig.html#onReady" class="tsd-kind-icon">on<wbr>Ready</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>